﻿using System.Data.Common;

namespace UPos.Core.Entity
{
    public class SaleEntry
    {
        public string FParentID { get; set; }

        public string Number { get; set; }

        public decimal Qty { get; set; }

        public decimal TotalPrice { get; set; }

        public SaleEntry() { }

        public SaleEntry(DbDataReader reader)
        {
            FParentID = reader.GetString(reader.GetOrdinal("FParentID"));
            Number = reader.GetString(reader.GetOrdinal("Number"));
            Qty = reader.GetDecimal(reader.GetOrdinal("Qty"));
            TotalPrice = reader.GetDecimal(reader.GetOrdinal("TotalPrice"));
        }
    }
}
